<?php

header('Content-Type:application/json');//这个类型声明非常关键
header('Access-Control-Allow-Origin: *');//避免跨域

$array = [
    'status'  => 0,
    'message' => [
        [
            "id"       => 1,
            "title"    => '挺好的',
            "add_time" => '2018-10-17T03:59:33.000Z',
            "content"  => '马上过生日了',
            "click"    => 1,
        ]
    ]
];
echo json_encode($array);